import { useEntityManager } from "@sker/core"
import { AutoUser } from "@sker/entities/dist"
import { useData } from "@sker/runtime"
import { z } from "zod"

export default async () => {
    const input = z.object({
        token: z.string()
    })
    const body = input.parse(useData())
    await useEntityManager(async m => {
        const user = await m.findOne(AutoUser, { where: { token: body.token } })
        
    })
}